<?php
namespace Home\Model;
use Think\Model\ViewModel;
/**
* ==============================================
* URL：http://www.liuhuanhui.cn
* ==============================================
* @date：2014-11-2
* @time：下午3:57:17
* @author：liuhuanhui
* @encoding：UTF-8
*/
class BlogsViewModel extends ViewModel
{
	public $viewFields=array(
			'blogs'=>array(
				'id','title','type','number','iscomment','content','date','image','readcount','sort_id','_type'=>'LEFT'
			),
			'sorts'=>array(
				'name'=>'sortName','_on'=>'blogs.sort_id=sorts.id'
			),	
			'users'=>array(
				'nickname','_on'=>'blogs.author_id=users.id'
			),
	);
	
}